import service from '@/utils/request'

// @Tags JobContent
// @Summary 创建工作内容
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.JobContent true "创建工作内容"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /jobContent/createJobContent [post]
export const createJobContent = (data) => {
  return service({
    url: '/jobContent/createJobContent',
    method: 'post',
    data
  })
}

// @Tags JobContent
// @Summary 删除工作内容
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.JobContent true "删除工作内容"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /jobContent/deleteJobContent [delete]
export const deleteJobContent = (data) => {
  return service({
    url: '/jobContent/deleteJobContent',
    method: 'delete',
    data
  })
}

// @Tags JobContent
// @Summary 批量删除工作内容
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除工作内容"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /jobContent/deleteJobContent [delete]
export const deleteJobContentByIds = (data) => {
  return service({
    url: '/jobContent/deleteJobContentByIds',
    method: 'delete',
    data
  })
}

// @Tags JobContent
// @Summary 更新工作内容
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.JobContent true "更新工作内容"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /jobContent/updateJobContent [put]
export const updateJobContent = (data) => {
  return service({
    url: '/jobContent/updateJobContent',
    method: 'put',
    data
  })
}

// @Tags JobContent
// @Summary 用id查询工作内容
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.JobContent true "用id查询工作内容"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /jobContent/findJobContent [get]
export const findJobContent = (params) => {
  return service({
    url: '/jobContent/findJobContent',
    method: 'get',
    params
  })
}

// @Tags JobContent
// @Summary 分页获取工作内容列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取工作内容列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /jobContent/getJobContentList [get]
export const getJobContentList = (params) => {
  return service({
    url: '/jobContent/getJobContentList',
    method: 'get',
    params
  })
}
